import request from '@/utils/request'
// 获取用户信息接口
export const login = (data) =>request({
    method: 'POST',
    url: '/user/login',
    data
  })
  

// 获取组件token接口
export const getToken = () =>request({
  url: '/token/getToken',
  method: 'GET'
})
// 组件应用
export const getComtoken = () => request({
  url: '/app/list',
  method: 'GET'
})
// 增加缓存操作
export const setCache = () => request({
  url: '/init',
  method: 'GET'
})
// 获取新闻列表
export const getNewsList = (params) =>
  request({
    url: '/news/list',
    method: 'GET',
    params
  })
